package cn.lidongyu.org.service;

import cn.lidongyu.basic.PageList;
import cn.lidongyu.org.domain.Department;
import cn.lidongyu.org.query.DepartmentQuery;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface IDepartmentService {
    List<Department> findAll();


    Department findOne(Long id);

    void add(Department department);


    void delete(Long id);

    void update(Department department);


    Long findCount(DepartmentQuery departmentQuery);

    PageList<Department> findByQuery(DepartmentQuery departmentQuery);
    void deletemore(List<Long> ids);

    List<Department> QueryTree();
}
